-- MUX_2 Architecture
-- Chang Lan, <changlan9@gmail.com>
-- 11/10/2011

library IEEE;
use IEEE.std_logic_1164.all;
use IEEE.numeric_std.all;
-- load def
use work.global_definition.all;

architecture behave of mux2 is
begin
    process(a, b, op)
    begin
        case op is
            when '0' =>
                output <= a;
            when '1' =>
                output <= b;
            when others =>
                output <= (others => 'X');
        end case;
    end process;
end behave;
